﻿@*
当前文件没被使用
*@
@{
    var X = Html.X();
}

@(
X.Panel()
    .ID("Panel1")
    .Title("Panel 1")
    .Items(
        X.MenuPanel()
        .ItemID("homeMenu")
        .Width(215)
        .Border(false)
        .SelectedIndex(0)
        .Menu(menu =>
        {
            menu.Add(
                X.MenuItem().Text("请假申请单")
                .DirectEvents(de =>
                {
                    de.Click.Url = Url.Action("AddTab");
                    de.Click.ExtraParams.Add(new { viewName = "PorletBaklogTask" });
                })
            );
            menu.Add(
                X.MenuItem().Text("请假申单查询")
                .DirectClickAction("QueryHolidayDocument")
            );
        })
    )
)

@(
X.Panel()
    .ID("Panel2")
    .Title("Panel 2")
    .Loader(X.ComponentLoader()
        .Url(Url.Action("RenderChild"))
        .Mode(LoadMode.Frame)
        .TriggerEvent("expand")
        .Params(new { containerId = "Panel2" })
        .LoadMask(lm => lm.ShowMask = true)
)
)

@(
    X.Panel()
        .ID("Panel3")
        .Title("Panel 3")
        .Loader(X.ComponentLoader()
            .Url(Url.Action("RenderChild"))
            .Mode(LoadMode.Frame)
            .TriggerEvent("expand")
            .Params(new { containerId = "Panel3" })
            .LoadMask(lm => lm.ShowMask = true)
    )
)
